import React from 'react';
// import { Pie } from '@ant-design/charts';
import { Layout, Menu, Button } from "antd";
import { indexMenu, indexRoutes } from '../../router/IndexRouter'
import { Switch } from 'react-router-dom';

const { Header, Content } = Layout;
export default function IndexPage() {


    return (
        <>
            <Layout>
                <Header style={{ height: '10vh', lineHeight: '10vh', padding: '0' }}>
                    <Menu mode='horizontal' defaultChecked="1">
                        {indexMenu()}
                    </Menu>
                </Header>
                <Content style={{ minHeight: '80vh' }} >
                    <Switch>
                        {indexRoutes()}
                    </Switch>
                </Content>

            </Layout>
        </>



    )
}